/**
 * Copyright (c) 2010-2011 Pierre Labatut
 *
 * This file is part of Space-Chronicles project.
 *
 * Space-Chronicles is free software: you can redistribute it and/or modify it
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or <http://code.google.com/p/space-chronicles/>.
 */
package space.stream;

import space.math.Vector3f;

/**
 *
 * @author Pierre
 */
class IOVector3f implements StructureIO<Vector3f> {

    public Class<Vector3f> type() {
        return Vector3f.class;
    }

    public Vector3f read(StructureInput si) {
        return new Vector3f(si.readFloat(), si.readFloat(), si.readFloat());
    }
}
